fixed setting const on unary ops for static check