Fixed problems with untyped enum and templates.
Fixed problems with untyped enum and templates.


Former-commit-id: 8e095b250192503fc7c5ba1c0e216a6e542d5178
Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide