Adding tests and implementation for proper comment localization.
Fix: Keep earlier nodes when searching for nodes a comment precedes.
Fix: typechecking.
Make sure that comments before nodes are on their own line. Add/fix test case.