fix stream feature pickler
a name space was missing
replace nested TMVar usage with StateT Stream