Tiled Gallery: Rows to all galleries.

Circle and square galleries also have rows now, so that we can handle overflow
for some themes more gracefully when content width changes. Fixes #551.