BUG: Panel.to_frame() with MultiIndex major axis

Fixes bug that caused failure on Panel.to_frame()
if major_axis was a MultiIndex (#5402)

refactor reindexing to index.py

API/REF: refactor bits to index. rename