Connection: check IDs of incoming streams. Fixes #13