i have the same problem, all the sitches are like you said they have to be, but that last row of spikes doesn't turn off, is the one above the central zone where the portal is, first above then to the right.
did you finally pass the dungeon, i've done the same as you with all the switches, but that last one row of spikes doesn't turn off.