fix filters for greater and greaterorequal.
Merge pull request #1 from nelsam/filter_fix

fix filters for greater and greaterorequal.

I added tests proving the problem to master.