Make sure to set the system ID for created sources

In particular, this change applies to `StreamSource` objects created from embedded resources.