Couple of fixes for particles

Particle mapping was not updated when indices of named arrays were changed. This should bring it up to speed.