boost::spirit: some refactoring (with slight speed improvements)

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