Fixing issue where the generated widget code was not valid for some Filter Parameter types.