Update setValue and addValue to allow number

  - update code
  - udpate test
Merge pull request #371 from thibaut-sticky/master

Update setValue and addValue to allow number as value