Cache hash codes of States.

This cuts the building time of automata in less than half.