Updating: fixing emit_hisexp by adding a flattening version (emit_hisexp_sel).