Fix cuesheet's PCM frame counts.

Add a more comprehensive set of unit tests covering
more unusual cuesheet configurations.
Minor optimiziation to FrameList's to_bytes() method.