Change _channels type to object

_channels was initiated as an array but is used as an object in the code.
While you can add your own properties to the array object it is not the
proper base type to use in this case.