Validation check on number of features in dictionary

This fixes #368
Off by one, MAX_FEATURES + 1?