update dev dependencies
Fix #182 and add test
Firefox does not like setting range to same pos

Fixes #181
Handle empty lists

Related to #182