(a) resolve PHP warning situation when 'default' is not defined in the p...

(a) resolve PHP warning situation when 'default' is not defined in the parameter list for a custom template operator, which in some cases is a legitimate thing to do, and (b) clean up ugly code