TST/FIX: Implement metadata in Frame and test it on user-def class.

Bugfix (pulled from #60) with associated test. Metadata was being ignored.