Reset invert state of active pen upon new pen presence.
Treat in-range state (no valid X/Y data) of active pen as pen lift.
Properly clean up resources in reset callback of optional test reporting
module.