Add support for matching part of a list of nodes