The song predates the modern connotation I'm pretty sure. Humpty is a diminutive of Humphrey. Anyway I do believe cannons are to kill, maim, knock down fortifications and rout your enemy. Of cooooourse the last argument of kings reeeeally means 'mine is bigger than yours so there'