Reworked trade replacement for better mod compatibility.
Added "maxTrades" for villagers Added "maxCommonTrades" and "maxRareTrades" for wanderer. Note that this only works when "removeOtherTrades" = true
Fixed wanderer trade check throwing an error when trying to add without replacing trades.