fix simple_serialize_sqlalchemy for non-dictlike models