filter implementation
Have Seq handle filter function.

Seq now checks whether key is a string and only if that's the
case will Seq ensure all inserted items have key set to val.