Fixes issue 9299 - std.algorithm.minPos of const(int)[]

minPos didn't work with immutable elements anymore. Fixed and unittested.

Also: re-enforced constraints. Changed `p` (implies pointer) for 'v' (implies value).

Note that minCount remains broken. It is z bit harder to fix because minCount accepts simple input ranges (no save). The fix is more involved.