Serialize transients

Example situation:

```python
from sqlalchemy.orm.session import make_transient
from foo import SomeModel

instance = session.query(SomeModel).first()
make_transient(instance)
instance.serialize() # DetachedInstanceError: Instance <SomeModel at 0x123456> is not bound to a Session; attribute refresh operation cannot proceed
```