fix timestamp checks
curry-able version of is-list and is-pair