Fixed bug in named channels. Note that named channel types are currently unusable due to LLVM's 3.* type system which doesn't consider structural equivalence of types.