Support using multimethods as script functions