Return the primitive values on getValue() calls

Fixes issue #273
Good points. I'll fix those issues and update the PR.