Fixed MergeTree Index Bug with Primary Key Column in Type Conversion Function

Fixed a bug in the index for MergeTree tables if the primary key column is located inside the function for converting types between signed and unsigned integers of the same size (#2603).