parser: some more const-correctness for the other functions in msg_parser.[c,h]