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.
This is fixed, but apparently github doesn't realize it.