Fix usage of assert

nothing serious, this came up while wading through the code.
well is has to be visible in the compile-unit because it is the type of `header.numStreams`...?