Change GenericEntity to properly be converted to an array via iterator_to_array