Fix getEntityType return type.

Should be consistent when using typedefs.