Fixed global initialiser for new objects.
Added generation of nested functions.
More Type parsing enhancements.