Striking dunes on Mars boast a complex formation history