[wt4] fix index issues in initproblem

Small fixes due to the fact that arrays are no longer indexed from 1.