Cloning an object which implements `ArrayAccess` throws this error `The class "ReflectionObject" is not cloneable.`