Make parse_dammit honour the 'ranges' option

Closes #140