Fixed setting of xsi_type in to_obj(); it was calling the old set_any_attributes method