* move datatype switches from wsqlcolumn to wsqldatatype
* minor codegen template fixes