Before, the type was just the enum type itself, which caused an assertion failure in iter_variant in trans::base. r=brson Closes #4229