BUG: Fix datetime components on DataArrays

We didn't have any tests, so they were broken.
Merge pull request #228 from shoyer/fix-time-components

BUG: Fix datetime components on DataArrays