fix Issue 519 - Invariant not called from autogenerated class/struct ctor/dtor

fix https://issues.dlang.org/show_bug.cgi?id=519

Will follow up with change to spec.
I prefer to leave it in until the controversy is over.