Upgraded EntityHelper to properly differentiate between global and mod entities.

Minor change of ModelObj.