GROOVY-4714: @EqualsAndHashCode should allow caching of hashCode values