adding method to indicate primitive keys are allowed
making some changes to help with jackson's json number serialization