Added case for `unknown` type. Fixes #3966