avioid Class.dup; see https://bugs.ruby-lang.org/issues/9603