User defined datatypes

Dummy PR so I can comment on this branch.
This is not the semantic for temporary tables or functions.  Though some users have complained about that....