I was thinking that I might switch to JSON for storing my script parameters.
I could possibly just switch to just a parameter map for each Block
So instead of a getter and setter for say frequency value on the blocks I would get it from a parameter map
var frequency = thisBlock.getFequency();
var frequency = thisBlock.getParameter("frequency");