Make the native check support Rhino

In Rhino, native functions do not display as just `[native code]`, but
often with extra information, for example:

    js> Array.prototype.slice
    function slice() { [native code for Array.slice, arity=2] }