Revert "Make metadata Dict<string,dynamic>"

This reverts commit 742ea11242d2f371be96498d38ce92ffb59d9734.