remove half-broken primitive function handling, for now we don't emit invokePrim