Improve porting of Stack-based collections
Try speeding up mesh edge iteration again.