REF: unstack
cc @jreback this moves a small amount of the unstack logic up the call stack, which is worthwhile, but the big wins available are if you can help me figure out the questions in inline comments.
looks fine. you can try experimenting if you try to unstack on a non-sorted index and raising and see what breaks.