Separate out the tests that depend on codegen

It's nice to be able to run some tests, even when basic parsing fails
and so codegen fails.
Don't go through metadata when dispatching variant parsing

So that the variant path can be streamlined.