Fix ClassBase#== for JRuby