Fix handling of non-ObjectId strings in IntType

See: #529