Bugfix, was pulling number of features from feature map before generating it.

This should fix an error in the establishing of the encoder for feature ids, which led to the packed grammar parsing garbage into the features, accidentally zero-ing all of them.