Add a limited prim type lookup for safer const expr evaluation