rex commands: fix bugs, and improve API. most notably, a reference environment dictionary is required so that the EnvironRecorderDict can know the values of environment variables during recording.  this allows rex scripts to use env var values in python conditional statements.
minor improvements in rez-config and rez-env