Bug Fix

Fixed a bug which cause sometime the object message type can't be resolved.
This fix is just move the "type = MsgsFile.resolver[type]" to the outside of "if (!isArray)"