Changes ObjectField#toDefinition to pre-allocate the map to avoid resizes.
Improves ObjectUtils#getClassFromLoader so that it can cache failures.