Fixed #5983: Support storing pointers/references to member variables in CheckClass::checkConst()