Fix broken parse_element ranges

1. Tests for parse_element are present, but aren't working.
2. Ranges syntax is broken in parse_element.