middle/check_const: CheckItemRecursion should only recurse into NodeItems