Fixed some of the many bugs in functions.parse_range().