Make sure Date.<=> is spec'd