Make LazyVals an IdentityDenotTransformer
Move check for casting a primitive to a non-primitive type from erasure to refchecks
Remove outdated tests.

dotc_core_transform directory is empty. Files where moved while restructuring erasure.
Enable outer tests in pattern matcher.

And a test for this.