More ref return fixes in std.datetime now that the compiler allows them.
Fix deprecation warnings in std.datetime.