Fixes #3133 : print unexported types also

replaced `typetree.jl` with version at https://github.com/tanmaykm/julia_types