Converting year into integer (when there is such information).

Fixes #9