Raise an error if there are duplicate datastreams. Fixes #143