Added type to Message class. Fixed memory initialization in UntrustedObject class.