Fix a bug where KontSet is not reference-counted.