Optimized object manager handling in XML.pm.