replace metadata dict with a  type
Merge pull request #34 from JuliaLang/jcb/fixcompat

Replace metadata dict with a  type