skip setter on primitives

Signed-off-by: Ted Shaw <xiao.xj@gmail.com>