Make sure OBJECT bit is set when 'value' is a factor

- Thanks to @jennybc for finding this bug!
Merge pull request #43 from kevinushey/master

Make sure OBJECT bit is set when 'value' is a factor