Initial-unstable template and templ to ghc compiler

This may be unstable as yet, will cleanup soon