Cache the merge patterns
Add method to do static resolution
Enable literals to do static value resolution
Spacing