Tidy up a typedef
ostream operator << for range template.
Some test utils
More work on metadata_checker_t