NodeResolver: Fix some comments and use const references for params