adjust handling of error key names for objects in arrays