remove use of jl_show_any and jl_print_symbol builtins, closes #3112
add write(IOBuffer, Ptr, nb)