Addresses #934 for ScalarEncoder

This adds a note to the base encoder `encodeIntoArray` method and then implements a check for the scalar encoder (which also covers the adaptive scalar encoder, possibly others).