Fixes a peculiar bug with ge and le Timestamp comparisons and adds tests.