Apply "unitless ravel()" workaround only for matplotlib 1.3.1
Make tests aware of the "unitless ravel()" workaround