Implement assert_nD in filter and feature packages

Builds on #1159.