wrap Metadata more correctly

to conform with `jsonobject`'s greater strictness