Fix CharRangesArray.prototype

Check function is getting called twice, which is causing the TypeAlreadyRegistered error.
Removed extra call from CharRangesArray.prototype
Merge pull request #1228 from deepak-sa/fix_char_range

Fix CharRangesArray.prototype. This looks like an improvement, thanks!