ligd: Make RList as subclass of RType

This allows us to pattern match on lists.