New function for getting a particle iterator at a given index. This will
be used for binary search in the particle id attribute layer.
Added 2 functions for looking up particles by their ID in the psys.
Implemented a simple iterator API for particle systems using a plain
index and the ID attribute for determining the state size. Have to see
how this plays out in terms of performance ...