Allow access by index

Since a linear flow is a linear set of tasks or subflows
we can easily add in an accessor that can fetch these
items by index which is useful for indexing for any
post-add operations.

Change-Id: Ib1690584a08e24fae29285225e6c519b06ce2ddd
Merge "Allow access by index"