rhogen: reduce number of warnings in the js/ruby bridges