Preheat oven to 350 degrees F. Line a loaf pan with parchment and/or grease with butter. In a large bowl, mix together the flour, sugar, baking powder, and salt. Add shredded cheese and toss together so that each piece of cheese is coated with flour. Add the stout and stir just until fully mixed. Pour into prepared pan. Allow to rest (preferably in a warm room, but our house is rather cold) for 20-30 minutes. Cook in preheated oven for 45-55 minutes or until an inserted toothpick comes out clean. Five minutes before removing from oven, rub the top of the bread with butter until its coated with a wonderful melted layer.. Remove from oven as well as from pan and cool on cooling rack. Serve warm with more butter. To store, wrap tightly in plastic wrap.