Rename FlattenToArray and implement it, extending its interface