Better support for recognising instances of built-in objects returned from native functions.