[feature/twig] Fix S_NUM_ROWS assignment

PHPBB3-11598
[feature/twig] Add template tests for S_NUM_ROWS and S_BLOCK_NAME

PHPBB3-11598