Remove unused forward declaration
Using forward to qualify stream instead of file sequence which is too specific
Using StringAppender to build filename without allocating
Adding check not null
Splitting stream implementation and formatting code
Fixing CHECK_NOTNULL