ir: Add some more buildConstant functions.
semantic: Handle postfix and primitive types.