JuliaLang/julia — pull request #1623 by rephorm (2012-11-28 08:10:05+00:00)
Title: [strpack] remove obvious key collisions for structs cache

Without this change, the cache fails in the following example:

f = open(...)
type Qibb; ...; end

unpack(f, Qibb) # first call is ok
unpack(f, Struct(Qibb, BigEndian())) # these
unpack(f, Struct(Qibb, LittleEndian())) # three
unpack(f, s"Qibb") # are not

# the last 3 here all try to unpack into a NativeEndian Qibb type