changes in global, class can now have destructor (class.make_finalizable), work on map layers, and various other fixes