Add a test for obj2yaml in preparation for refactoring it.
Ah, forgot to include the header file and project file changes in r178827.