Fix typo in ZM_SetEntityReferenceType in resource manager.