I seem to think, most if not all, animals go thru behavioral onto-genetic changes. But, I am not so sure that this is entirely at work with your examples. For sure, its partly responsible.
For instance overt traits. like being friendly, eating off tongs, running up, sitting or climbing on you. Can be totally reversed simply by putting the individual in a different cage. Then back again, when placed in the original cage. I think its called or compared to. situational behavior. In this case, their behaviors are not entirely based on or towards you. But instead, they are to you, and the situation you are in. Change the situation and the behavior changes. Another example would be, park lacies, they eat out of your hands at picinic tables, but when away from the tables, most will not let you come close.
Also, I have said to people here that I could turn their "dog tame" monitors back into normal, hissing, whipping, give me food or I will go nuts all over you, monitor. I can do this in a day or two. I could do this, without any harassment to the monitor. I simply give them a cage that has the things that allow them to be monitors. I have had some very interesting examples of this, like, a captive hatched monitor, that was kept in indoor/outdoor cages. Indoors, it would eat off tongs, allow handling, etc. Then when in the outdoor part, was totally wild. Even to the point of flying inside in a panic, then eating out of your hands. I have seen this in outdoor to outdoor, indoor to indoor and outdoor to indoor changes, as well. Just something to think about. Frank