Fixed unary operator type checking