Stapling machines with provision for bending the ends of the staples on to the work with means for forming the staples in the machine