Changed problematic API of KNeighbors classes, #2609

The modification was made according to the advice in issue #2609.

This also addresses a bug that set_params hasn't actually changed 'p' parameter of minkowski metric.