Add utility method to clear AmfDictionary.