make _MAGMA_SetRing more robust

it now passes the names of the indeterminates rather than their pointers
(this is necessary in future when we completely abondon strings as pointers)