Reafactor StarRating and its test Make sure BIDI is supported.

 cf. https://github.com/ibm-dojo/dui/issues/18.