Fix line-jumping bug in FIFO implementation

Keep the FIFO's internal set in sync with the queue during Add/Update
operations to prevent a queue line-jumping scenario (described in a
new unit test).
Merge pull request #1935 from ironcladlou/reflector-tests

Fix line-jumping bug in FIFO implementation