add support for custom value converters, fix datetime bug and issue #8