Fixed bug in the TabShapeRLines

Fixed bug in TabShapeRLines. Previously did not account for lines having multiple components correctly. This is fixed, although adds an extra argument "LineSubID". I hope to get rid of Line Sub ID as it is not consistent with the other methods.