sl/cont_shape: avoid using unrelated offset in indexShape()

The code mistakenly used head offset as field offset of the pointer to
head.  The only reason why no problems were observed was that both the
offsets are zero in our "hello world" example.