fixes prettyprinting for valparam and varparam