Add .to_dict and .from_dict methods on EncodedEntity, decode_from_dict API