'maxtype' should be checked to see if it should be updated whenever
a type is added to the type map.
(cherry picked from commit e84615629f)
'maxtype' should be checked to see if it should be updated whenever
a type is added to the type map.
(cherry picked from commit e84615629f)