Dynamic include_keys and exclude_keys for kv filter
Closes #1618