CHECK statements added where invalid reference was detected. Some variable names fixed.
I see. Thanks for the clarification.
resolved all threads
merged
mentioned in commit 15226b1c