rasham: further changes to validating_test_stream

validating_test_stream is a moderately sophisticated ostream adapter, which
is capable of comparing the outgoing data with templated reference, as well
as extract some useful information out of it. Patterns may gain a scripting
capability in the future, as outlined in project github wiki.

Signed-off-by: Alex Dubov <oakad@yahoo.com>