Cleaned up the model evaluation code.

Also added a constructor for SimpleNLMM from a DataType.