ui: change selected gadgets to a hash-set.
compiler.tree.dead-code.simple: curry live-values.
compiler: more use of hash-sets.