[WIP] Resource collection create from iterator

one could also make this conversion lazy