Add type converter for GregorianCalendar. Fixes #334.