Inplace

Inplace operations both for `filter` and `transform` (Issue #343). Do other methods need it?

Also, fix a bug in filter (metadata = None instead of an iterable is bug prone).