Added tests to prove long lists, with a strange fail for padded zeros
Added more tests to help finding the problem
Fix failing tests & Adds an even odder one.

An unsorted list of jagged ids.
And this fixes it.

Decouples the id from the request-data from the id in the collection
returned.
Changes according to @thecodejunkie
Merge pull request #1152 from albertjan/FixFor-1150

Fix for 1150