First we copied the entire BMesh custom data layout to the Mesh, then we decided not to copy some boolean layers like UV pinning if every value was false. But that left the layers uninitialized. Instead, copy the custom data layout _after_ finding which layers to skip.