sentence: the seal ( swedish sigill ) , used extensively in the middle ages , was instrumental in spreading heraldry to churches , local governments , and other institutions , and was the forerunner of the coat of arms in medieval sweden .