Merge many fixes

Contains the PR #1893 and a possible fix for the premature RxRingBuffer unsubscription and NPE.
Required for correctness, otherwise the ringbuffers are not returned to the pool on unsubscription. One alternative could be viable to pooling, namely a parameter that specifies the ringbuffer size in merge() and thus it doesn't overallocate.