prettyprinting fix for Pkg with non-trivial refs