efxmap2perm-deterministic
changed ty2perm-deterministic to be more general.