The bag thing likely depends on the angle of the item in question. At some angles, an item may look harmless, others it might look like something explosive (better technology would fix that, but we're still using pre-9/11 x-ray equipment).
As for the metal detector, I'm not surprised. That happens a lot.
It's not any 'designed inconsistency,' it's just some equipment not up to snuff.