Migrate streams to reactive-streams 0.4.M1

That's Java code, so it has to look fishy! Seriously, it seems that directly casting isn't possible at least with some Java compilers so we take the detour over the raw type.