Avoid breaking iterator

Since len is calculated ahead of time, this was causing array bounds violation in iterator.  Assuming only one collection by that name... if found, splice and your done.
Merge pull request #3 from obeliskos/patch-1

Avoid breaking iterator