WIP - private function codegen
WIP - little more work on C type codegen, another test for functions
WIP - closure type codegen
WIP - function codegen. Introduced a slight regression here
WIP - fix for closure variable capturing regression. Man that stuff is complex