Move scope_of to a method on Node. Kill some old TODOs.