`DCHECK_EQ(layout, layout_i)` will compare addresses of two pointers, we should compare values.
`DCHECK_EQ(layout, layout_i)` will compare addresses of two pointers, we should compare values.

Also fixed some headers.
