Fixes issue opentx#196. When multiple custom functions were defined to u...

...se SWHs, only the first one would work. Also, if a custom function using SWHl was defined, subsequent SHWs functions would not work.