allow nested accesses in loop upper bounds