Fixing issue 2560 : Imputer bug with median and dense input