Fixing a bug in MappingUtils::getObjectVars()