GM_setValue('val', true);
GM_getValue('val') --> "true"
Never hacked around with GreaseMonkey on Firefox so I don't know if this is expected or consistent behavior. What I do know is that the popular script I was fixing for this bug (gmailAutoBcc) was expecting getValue to return a boolean.
Good luck!
MrC