Make task->residual a size_t instead of an int
Update and improve the log messages for failures for the read10 invalid test
TESTS: Add test for READ10 to check that over/underflow residuals are generated correctly.