[WIP] Resource collection create from iterator

this also fixes a minor bug, in that ``offsetGet`` should return null when an undefined offset is passed in