maint: Add function collect_statements (parent, collection, count)

* dietncl/filter/norm1.lua: New function collect_statements (...);
Updated function filter.apply (ncl).
* tests/test-filter-norm1.lua: Likewise.