Add `TreeCodec` interface