core: Give a proper error message if we try to partially appply a primop