Fix errors in set code for option variables.
Merge pull request #20 from Kinematics/dev

Fix errors in set code for option variables.