Introduce solvedPatterns to LogicalPlans

This will be used to track which patterns have been solved similar to how IdNames are used and is required for var length patterns.
Make QueryGraph pick up var length patterns
Split PatternLength into {Var|Simple}PatternLength
Merge pull request #2231 from jakub-/var-length

Introduce solvedPatterns to LogicalPlans