Use internal implementation of hash table

Use hash table implemented internally for dictionary of labels.
Thanks to that some operations are more efficient:
it is possible to use better hashing function than in hsearch.
it is possible to count hash during label validation.