lite-tr: fix code array size in tests

When interpreted as a template parameter array becomes a pointer with
the corresponding size (4 or 8) so sizeof(code) is not what we want it
to be. This CL changes the way to pass the array so that its size can be
taken from inside the template function.

Test: berberis_host_tests
Bug: 286247292
Change-Id: I15253b0d6256126e7a15f2fbd370ddd715e508d0
1 file changed