Fix mapserv example

This adds a clone method to the map object and fixes up the mapserv example so it works again.