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.
Part of my solution is to change the spec to say the invariant won't run for trivial construction. Since obviously several people expect it to, I await their response.