Better checks for types with a flat layout in memory.