fix restoreAnswer on checkbox MCQs

fixes #311
Merge branch 'master' into file-versions
change .exam header format

the header at the top of .exam files is now of the form
	// Numbas version: <version string>
so it's more clear what that line is for
compile variable definitions properly

now variables are objects with a few properties