Corrected script- and map-related regressions.

Shell script emulation has been substantially improved. Map keys are now
retrievable from arbitrary maps (albeit at the cost of an implicitly
unavoidable "eval").