Improved hashCode generation.
Implemented hashCode/equals + valueHashCode/equals.
Extended test for converting from mutable to immutable state.