Return the primitive values on getValue() calls

Fixes issue #273