Partially implemented new faster version of sector map

Found memory leak in copying sector maps to unit models
Fixed some warnings