Unhashable classes cannot be used as links in extended trait listeners

This PR includes a test-case for bug #209.