Complex actions in two-dimensional topology change