Inline aliased identifiers into node and relationship patterns

This improves on the number of cases where we can actually inline thus allowing us to plan larger query parts all at once
Merge pull request #2349 from boggle/inline-patterns

Inline aliased identifiers into node and relationship patterns