Check declaration initializer expressions for nested refs.
Merge pull request #1854 from ibuclaw/issue8957

Check declaration initializer expressions for nested refs.