Fixes for gt and gte, and add toNumber method