Adding autodetect of state size arrays for gpu rezone all realloc