Holyrood parties have been challenged to rule out standing candidates in next year's local elections who have no right to stay in the UK long term.