Fixed an issue that TokenInfoDictionary doesn't return all features.

* TokenInfoDictionary#getAllFeaturesArray misses the last feature.
* Added relevant tests including UserDictionary.