Attached patch fixes GiST behaviour without altering operators behaviour.
------With best regards,Alexander Korotkov.