Ruby Errors in Dynamic Components

SketchUp hangs as if stuck in an infinite loop:

See: Using either scale function or user input to set LenXYZ