Tiled Galleries: Update square gallery classes.

For resizeability.
Tiled Galleries: Fix PHP errors.

Fix PHP errors by fixing a typo and adding default parameters to
overridden functions. Also context is properly passed to child template
in circle galleries.
Tiled Galleries: Add styles to all groups/rows.

Also square and circle galleries have inline styles applied to their
rows and groups.