make max and min work with user-defined casts

corrects a problem with max(double, FieldVector<double,1>) and max(double, FieldMatrix<double,1,1>).

Merge request reports

Loading