Made the invariant error message more meaningful by throwing the class module and name in to it.
Changed up how invariants work.