Allow syntax extensions to return multiple items, closes #16723