make function and constructor printing terser and more consistent.
Merge pull request #4344 from JuliaLang/sk/function-printing

make function printing more demo-friendly