Remove loops in periodic_wrap, thus avoiding occasional pathological slowness
Adjust types of written particles for large NumPart
Miscellaneous cleanups
More misc cleanups