No, there isn't. Not a feasible one. I'm one of the people who have tried to fix this. There's been several professional programmers, Keen and non-Keen alike, who have tried to find a solution with no success. There are solutions, but no simple ones. All have a significant impact on what you can do in the PB, and all involves a lot of work to do. Even the simplest solutions involves unintuitive changes with what will feel like arbitrary restrictions for the coder, even further raising the bar for who is able to write good scripts. When I started working on the PB it was with the hope of making it easier to learn eventually, not harder. I wanted it to be a way to draw in and excite new coders, not scare them away.