Ported [ns.toValue] and [ns.toFunction].
Util.ns reading from (global ? window) if a root object not specified.

This makes the method generally useful (and therefore applicable to
Util) without the need for the special known APP object, that existed
in a legacy world.