Exceptions on invokePrim + add parentheses to intrinsics operations