rudimentary, untested support for date/set types