minor adjustments to mapscript

fix horrible resizing error, streamline destructor