move printing functions up so we can debug in unification
fix delayed typing of multi-type @:to methods (closes #2982)