Solved ClassCastException in deepCopy() and equals() that prevented somehow deletion of instances

I've enforced type checking in HstoreDomainType methods in order to make a correct type cast.
A test that check instance deletion is attached, so far I've noticed no regressions.
This should solve issue #28.