0436a555d5
Before this commit we relied on a fact that exotic types aren't possible at serialization stage. However, in non-ABI mode we can get even a private function (e.g. top-level private), so we have to perform this approximation.