wrap CreateAlloca by ir_helper

to absorb the difference between value types and reference types
fix the condition for compound assignment operators