Fix ordering of Regex.simpleMatch() parameters

Previously we incorrectly sent them in the wrong order, which can cause
validators not to be run for dynamic settings that have been added
matching a particular wildcard.

Also adds a small unit test that makes sure we fixed this behavior.

Fixes #7651