Add preliminary support for enums and pattern matching to the cross-compiler.