Implement clone() for FieldSolver and SimpleSolver.

The use of reflection is avoided in this way.