BUG: Filter/transform fail in some cases when multi-grouping with a datetime-like key
Fixes GH #10114, and a related problem in transform which was already present in 0.16.0

can you rebase
 can you rebase and ping, will have a look
 Rebased
 thanks! keep-em coming!
 Thanks!
