Add implicit generation of UDT[T]

This helps when implementing custom scala data input formats.