Ensure `keysIn` treats primitives like objects and both `keys` and `keysIn` return empty arrays for `null` and `undefined` values.