BUG: Series replace values using timestamps in a dict GH5797

This fixes issue #5797.