message: fix closures, remove paths
diff: */
  class DeadEndFinder {
  public pointMap: PointGraph<IWalkPathWithEndpoints>;
  - public pointMatchingDistance: number;
  private list: IPointGraphIndexElement[];
  private removed: IWalkPathWithEndpoints[];
  private ordinals: { [pointId: number]: number };
  private load() {
  var walkOptions: IWalkOptions = {
  - onPath: function (walkedPath: IWalkPath) {
  + onPath: (walkedPath: IWalkPath) => {
  var endPoints = point.fromPathEnds(walkedPath.pathContext, walkedPath.offset);
  if (!endPoints) return;
  walk(this.modelContext, walkOptions);
  - this.pointMap.mergePoints(this.pointMatchingDistance);
  + this.pointMap.mergePoints(this.options.pointMatchingDistance);
  }
  public removeDeadEnds() {
  i++;
  }
  + //do not leave an empty model
  if (this.removed.length < this.pointMap.values.length) {
  - //TODO now remove the values
  + this.removed.forEach(wp => {
  + delete wp.modelContext.paths[wp.pathId];
  + });
  }
  }
  