[java/cs] Set gcurrent_class on module filters as well; Only duplicate the check of optional arguments when overriding a nativeGen class. See #3504