Subject.toSerialized

Adds toSerialized as discussed in https://github.com/ReactiveX/RxJava/issues/1748
Merge pull request #1834 from benjchristensen/toSerializedSubject

Subject.toSerialized