Added return flag to indicate if any dynamics matrices are identical,
intended to be used for performance optimizations.
Attempt to remove redundant computionas from MixedNLGaussian class