better error message/assertion in to_ticks
fixed support for pandas 0.15