Adds support of Class.getDeclaringClass method