Fix return type of getSourceName().

The superclass was using string, so let’s use string on the subclasses.