Ensure MessageChannel is used in Safari too.

Replace type checks for function with function-or-object.
Version 0.2.4