Wrap unpack operations in parens to avoid pass by reference warnings
Suppress fclose errors in MessageSetTest when stream is already closed
Use a input stream instead of temp when testing writing of read only streams