caos: Implement PathResolver.serialize_path()
caos: Implement PathResolver.serialize_path()

The new serialize_path() method produces a simple serialized script that
can be quickly replayed later to obtain the resolution in class form.
This is geared primarily towards caching.

edgedb/edgedb,edgedb/edgedb,edgedb/edgedb