Fixing range queries (__gte, __gt, etc)

Using a query such as S().query(height__gt=10) results in an error like: "[range] query does not support [height]".

This appears to be because the _boosted_value() function returns an incorrect dictionary for range queries. I took a stab at fixing this, and added a unit test.