Add support for saving and retrieving Metadata with objects.