SWC-386: extra encode/decode for widget parameter values
changes from code review
Merge pull request #193 from jay-hodgson/develop

SWC-386: handle all encode/decode for widget parameter values