Fix false positives wrt attribute initialisers w/o constructor

The presence of a constructor (or destructor) was checked inside a block
that was only entered when tracelevel > 0.
Move the checks out of that block to prevent false positives.