Allow multiple input feature with the same value for gaussian processes

Fix for issue #3162. Allows to have multiple input feature with the same values for Gaussian Processes