Small bugfixes

- Fixed GetVar and PutVar to work as I had intended.
- Fixed MapMsg not being named correctly, and not being handled
correctly.