Fix ContextIO::Message#set_flags method

Potential fix for #48