Fix memcpy, in case sizeof(bool*) != sizeof(bool)