Fix date parsing.
Don't trust that the dates are not arrays.
Merge branch 'unexpected-arrays'

Closes #65