[fix] Major sensor integrator logic bugfix.

This adds an automated discarding of the first value in every measurement
round, as well as a numerical bugfix, refactor of the integrator code, and
some corresponding unit tests.
24 jobs for sensor-tests in 3 minutes and 10 seconds (queued for 28 seconds)