SMS dit: Native law and the church in medieval Wales