Since the multispectral path is equivalent except for gradient calcs,
only one test case is needed. This test is modeled on the 3-D
non-multispectral version. If deemed necessary, adding a 2-D case
would be simple.
* returning the probability to belong to a label instead of only the most
likely label is now possible
* fixing some type issues
* handling non-consecutive label values