RawPrimitive realloc fix