Added limit to the number of elements added with sonata_type_collection