Added hidden reference in derived stream to prevent GC

Derived streams need to hold onto a reference of their origin
stream to prevent their origin being GCed.