Fix containsNode return type for Selection object