Update StateToContent with correct assignment of extensions now that the state.content.annotations.extension is a dict