Use GEPrimitiveType everywhere instead of stupid integer
Merge pull request #3395 from Orphis/enumprim

Use GEPrimitiveType everywhere instead of stupid integer