Make zipline pandas 0.15 compatible

Just some minor changes for code that broke under `0.15`. Ran tests with `0.12` and none failed.