gwpy.segments: fixed a few small bugs in flag.py