Fixed hashCode for constructor type