groupBy with element selector

Fixes https://github.com/Netflix/RxJava/issues/1554