}
Class vc = field.getCollectionClass();
boolean ar = field.isCollectionArray();
if (!ar) {
// check for autocollection wrapping
ConfigValueType configValueType = config.root().get(field.getName()).valueType();
if ((configValueType != ConfigValueType.LIST) && field.autoArrayEnabled()) {
Object singleObject = hydrateField(vc, field.getName(), config);
col.add(singleObject);
} else {
// safe to cast to Object[] since cannot have collections of primitives