Fixed bug in messaging.js

Fixed bug with Internet Explorer versions 9 and earlier where IE does not recognize the isArray function.
Update messaging.js

Updated code to reflect more proper way of handling the check of an array in Utils.isArray function. Updated the toArray function to use the Utils variable instead of this, for scope concerns.
Merge pull request #1 from Izzmo/master

Fix isArray compatibility in IE< 10