Type-checking -- specifically, checking whether a given type has a particular memory layout -- is currently hard to do for heap types.