Fix: no-unused-expressions directive support (fixes #1185)

Fixes #1185. Related: #1186.
This list is always of nodes, so `ASTNode[]` is most appropriate for both this and the return value.