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

- Thanks to @jennybc for finding this bug!