Allow non-int stratum id, improve transect generation algorithm to handle complicated cases better, fix minimum distance test