Ensure sizes are ints when growing DP tables