add test for map on empty collection
add exception to empty map() call
Merge pull request #25 from easybiblabs/bugs/collection-map-infinite-loop

Fix loop on Collection::map()