Yes, I see the discrepancy in the formula in Indicators.cs, line 830 and the formula at http://stockcharts.com/education/IndicatorAnalysis/indic_RSI.html
To fix this error, the class will have to be reworked with the circular queue class instead of a simple array to keep the current gain synchronized with the previous average gain value.
Thanks for bringing this issue to light.