Changed the cast from IClientChannel to ICommunicationObject in the wcf registration extensions

Fix for issue #490.