add ability to set random seed, lists.shuffle and num-random
the definitions-running half of locator-based repl, and a few related fixes