Return the primitive values on getValue() calls

Fixes issue #273
Given that we already have a number I think it would also be good to add a comment indicating why we aren't just doing `return number;`.