Update references -> types