Perform consistency check on the slowness model.

In Java, there is a separate validate method defined in the SphericalSModel subclass and as such overrides the validate in SlownessModel, but it itself calls the super method (by super.validate()), i.e. the code above. Both are merged here (in fact, it only contained one test).