Split blocks and subregions rendering into separate methods; switch to a...

... unified content variable in region hook_theme/template
sizeof() is an alias of count() which should be used instead.