Lifted source subdeclarations to the top-level for the typechecker. Bugfix for ensureUIDs to recur into AST subtrees that already contain a UID.
Merge branch 'master' of github.com:DaMSL/K3-Core