Fixed resolution when checking for instance of closure on result of closure