Fix the semantic check for USING INDEX hint to inspect node patterns

- Also, fix the way it was handling predicates in WHERE.
Fix handling of dependencies introduced by UNWIND
Merge pull request #2433 from jakub-/using-index-hint-fix

Using index hint fix