Mg/MeOH mediated transformations: carbocyclisation, elimination reactions; rearrangement reactions during functional group protection