Gradient ordering now also take into account all the errors of derivative couplings, in order to achieve better ordering accuracy.
Fixed a problem with gradient ordering that can cause difficulty to obtain correct order when one of the states in the ordering group does not have gradients