Check enum trimmed bits for values with undefined bits

If an enumeration constant has undefined bits then we need to verify that
the bits that are trimmed match the MSB of the remaining bits.