Fix handling of SYM_TYPE_DUP_DISCARD
!9475 (closed) turned the Symbol_t.type
field from a simple enumeration into a bitfield by introducing the SYM_TYPE_DUP_DISCARD
flag. This ended up subtly breaking the linker in some cases as the new flag was not consistently masked out when the type was needed.