Fix warnings, add generics to connector back

We don't expect any methods on <E> here, so we can use generics in this
case.