Generalize type functions to non-symbols as well.  Now they work for
all SARAH parameters, like B[\[Mu]} etc.
avoid calculating the maximum twice