Add category argument to pretty_print_arg(), add pretty-printed registry samDesired