Search for Z' resonances decaying to ttbar in dilepton+jets final states in pp collisions at sqrt(s) = 7 TeV