Owain- Hereith a few clikies, first two condensed history, the third the catalogue of the Universiuty Press which might assist in more detailed research.But Yes Hywel Dda (The Good) did codify the law, protecting womens rights, and the rights of inheritance well before Magna Carta.
On the othe hand there is this version of Welsh History.
Regards
Gareth