squeeze works on 0 length arrays
fixes: https://github.com/pydata/pandas/issues/11229.
fixes: https://github.com/pydata/pandas/issues/8999.

Also a better implementation that avoids `ix`

Should I add to What's new for 0.17? Or is that closed now?
