ArduPPM: task optimizer slightly modified for better efficiency.

The validity checker and dead input detector functions are now called from the ppm decoder function.
This is to avoid duplicated tests.