(#22363) Add validation of case and hash.
There were validation missing for case and case options (rvalue checks)
Checks were added for hash entries (they must be rvalues)
There were code to transform and dump the removed InstanceReferences
Pops model object. This commit removes that dead code.