Never God-bereft: allegory and agency in late medieval literature