fixup end_range typos

Hi there.  I found what I thought might be a couple of typos when CZ tries to parse some of my chef searches.

The braces look like they are facing the wrong way for "normal" range queries, and then when it tried to throw the error there was a missing "expected_end_range" variable.  I think this is what was intended.