Fix offline compression with template inheritance

Fixes issues with template inheritance in offline compression command.

Fixed multiple inheritance where contents of some base templates is not included in compressed output.

Allow base template to have compress tag outside a block  tag.  Currently the derived templates are not seen as having compressed content when compressing offline.

Fixes issues #433 and #171 (171 was closed but was not resolved)