Safer i/o list construction
Following !1803 (merged), it would be good to:
- Check that the number of entries we list for output does not go past the list size (currently 100 fields per particle)
- Check that the list does not contain gaps which segfault in the actual write.