ensure a clean "output" array in encoder.encode from RecordSensor