Fix two reflections

In the :string decoder, type-hint the :array decoding, to avoid a
reflection, and similarly type-hint the :array decoding during tests.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>