Migrate reference array in methods to ArrayObject