Removed get_object_vars since it fails with object numeric key