Subject.toSerialized

Adds toSerialized as discussed in https://github.com/ReactiveX/RxJava/issues/1748