Made connection expression error message for undefined variables more specific

- Connection expression error message for undefined variables states first variable in expression that is undefined.
- Removed `parent` argument from  `_needs_pseduo_comp` because argument was not used within function