rm casting, as this should never happen
rm error if phi =/= 0 or t =/= 0
tests of R2deriv and z2deriv; fixes #216