Split AST::TopLevel into TopLevelScope and some compiler code.