Fixed function `subset` not being able to return a scalar value `null` or `undefined` (see #205)