pt_getparamdefault() now supports also types