Added annotation scanning to TypeProfile.