gh-2167 register instance methods and statics for discriminators