merging from ruby trunk
* ext/psych/lib/psych/visitors/yaml_tree.rb: register time objects so
  they are referenced as ids during output.
* test/psych/test_date_time.rb: corresponding test.

Fixes #146