Consistent subscripting when working with objects with different shapes