Added check that data is a dictionary in Repo.