Sometimes it is useful to support Pydantic `BaseModel`s as pipeline/component inputs/outputs. We don't currently serialize them by default and this could make them incompatible with the breakpoint/snapshot feature. We should do something similar to #9869, where support for `Enum` was added. @sjrl feel free to correct this or add details.