Throw error when writing to read-only variables in server module

Fixes Ticket #66 for the server module but not elsewhere