[ticket/12224] Add assign_block_vars_array() test.

Add tests, also change return value to null.

PHPBB3-12224