ligd: Add a small rType factory that implicitly determines the Rep
ligd: Add a small rType factory that implicitly determines the Rep

This makes things easier. Also get rid of needing to write EP() in
there.

julian-klode/bsc-thesis-code