BUG: Support pandas 0.8.0.

Should fix remaining problems with pandas 0.8.0.