Ensure the connections object is an instance of Collection

Fixes #26

Needs a test case.