metamodel #226: AppliedFunction: support toplevel methods
metamodel #226: added Function.apply to get an applied function (at least for toplevels)
metamodel #226: added Package.getFunction