Encapsulated MetaData members. Added helper functions for common tasks.

This function modifies the field `meta_data`, which is a direct (non-pointer) member of `Path`. Visual Studio correctly provides an error.