boost::spirit: some test harness functions for numeric parser

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