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.
"Controversy is over" – where does the actual discussion take place? The last related reply in the bugzilla issue was in 2012.