Tell single nodes from node collections by testing for a 'length' property.
Don't push empty node collections to the scope array.
More robust regexes. Assign getter based on regex.test.