Fix duplicate edge Pool crash in the minimally invasive way
Fix Pool to use a set internally
Fix debug build on linux (type strictness).
Add regression test
Merge pull request #521 from riannucci/ignore_duplicate_edges_in_shcedule_work

Fix duplicate edge Pool crash in the minimally invasive way