Check if set is redefining a param at the class level. Fixes #939