Fixed #5481: std::array is POD, so using memcpy (etc.) is allowed on it.