Refactored addVectorLayer in MapServ