Guarantee well-formed time objects. Fixes #306.