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.
Do you mean leave it in the pull request or leave it in the compiler's source?