[ticket/12224] Add assign_block_vars_array() test.

Add tests, also change return value to $this
as it stated in abstract class function docblock.

PHPBB3-12224