The Voice referendum has sparked debate about the potential federal treaty with Indigenous Australians.