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 
cosmetics: please enclose multiline expressions with `(` and `)` instead of using `\` signs at end of lines.