Fix CharRangesArray.prototype

checkFunction(...) was getting called twice, which in turn was trying to register the same element twice, hence generating an error.