ResourceGroupParser refactor

Stuck with the commented out tests failing.
For this test, the size of actions become `2` and `## /2` node is getting ignored.