On the Generalization of Representations in Reinforcement Learning