CLN: more generic index creation in algorithms.py

CLN: move coerce_indexer_dtype to common
PERF: set multiindex labels with coerced dtype (GH8456)
Merge pull request #8676 from jreback/algos

PERF: set multiindex labels with a coerced dtype (GH8456)