Add object2dict (dirty implementation) + update warnings