Fix array handling for JSON pointers when resolving OpenAPI schemas (#67573)