Optimize use of primitives

We make it illegal to modify the definition of primitives, which allow
us to call them directly at run-time.