fix pattern-matching rule when loading variable definitions

affected "range of numbers" and "random from a range" variables.