NativeStructArrayCodec now also correctly calculates the size of a struct