fix a problem with one-sample-long arrays in older numpy versions (that
set a float as trace.data instead of an array of a single float)