add support for Time type, custom_typecasting method, fix timestamp quirk