check traits and priors in get.trait.data (redmine #1767)