fix some refs to reified types