Sadly, it looks like the transfering of pokemon on CP/IV in the new version of 167. I've got the logs and logic to prove it. Glad I tested it on pidgey and ponyta.
In the case of pidgey here it transferred the top IV....
Here Ponyta lost its top IV although it was tied with another:
Here's an example of the logic....
Here's the log....
View attachment 2017-01-07_T19_17_26.txt
In the case of pidgey here it transferred the top IV....

Here Ponyta lost its top IV although it was tied with another:

Here's an example of the logic....

Here's the log....
View attachment 2017-01-07_T19_17_26.txt