* feat: make JSON serialization of referenced pydantic models possible * add docs * chore: @samuelcolvin remarks