Consistency improvements in internal feature vector
representation. An array with integer keys will be passed
through array_count_values to be made a frequency vector.

Bonus: By doing that in multinomial_nb_classifier we have shaved
off a few function calls and additions