Added tests for cue dispatch and retrieval

I've also created an EmptyCue type, which allows free initialization
with the default constructor. The EmptyCue is completely immutable,
and so the CueSettings tests had to be updated to construct an
actual mutable cue.
Fixed memory management in String class

Checking if d points to sharedNull more frequently now.