8031359: Invocable.getInterface() works incorrectly if interface has default methods
Reviewed-by: attila, hannesw
typeof(java.lang.System.exit) = function
typeof(java.lang.System['exit']) = function
typeof(java.lang.System['exit(int)']) = function
typeof(java.security.AccessController.doPrivileged) = function
typeof(java.security.AccessController['doPrivileged']) = function
typeof(global.Object) = function
typeof(new global.Object()) = object
typeof(engineGlobal.Object) = function
typeof(new engineGlobal.Object()) = object