Minor fixes for ObjectId and MessageType stat recording
Merge pull request #432 from Juniper/anishm_statobj

Minor fixes for ObjectId and MessageType stat recording