Fixed bug in code that writes out Riff list headers.
Fixed bug in code that writes out Riff list headers.

digitalbazaar/monarch,digitalbazaar/monarch,digitalbazaar/monarch,digitalbazaar/monarch,digitalbazaar/monarch