Get the name of an environment when the address-name lookup table has not yet been constructed
get_environment_name(env)
environment whose name is of interest
the name of the environment as given by environmentName()
if it is a named environment
or the name of the environment as given by deparse(substitute())
otherwise.
This will result in a string representing an expression when 'env' is given as an expression as in
parent.env(env1)
.