Make optimization configurable in the test suite
Move assertions close to their producers

- For "duplicate DW_TAG_const_type", this is a massive win, as we
  avoid having to do +unit for a vast majority of DIE's that would be
  rejected soon anyway.