Add Dictionary serialization/deserialization support

Also, unify the way a schema is retrieved/prepared from the class.