Nested udts

Should be applied after #206