Check for type in $gt, $lt, etc. and fix tests for $lte
Merge pull request #21 from vkarpov15/add-op-type-check

Check for type in $gt, $lt, etc. and fix tests for $lte