Add fromdict constructor to MetaData