@violine1101 I have updated my post to answer your questions
This problem could be in all worlds, though it could also be an issue with the specific world that I am playing in. If needed, I can upload this world.
Also, wandering traders spawn periodically in this world. I looked in the level.dat and did not see any data entry regarding patrol spawning, but I did see entries regarding wandering trader spawning.
According to the wiki, "Trading with a villager for the last offer slot on their list" Gives +1 popularity. As I stated above, I did their last offer slot (buying bottle o' enchanting, which is their last offer) more than 64 times, yet iron golems are still attacking me unprovoked.
I was not talking about village population, I was talking about village POPULARITY. Completely different.
This is intentional behavior. As part of their "supply and demand" A.I., if an item is being bought enough, there is a chance that the price will increase.