Future proof array iteration

Instead of relying on a constant being up-to-date with the length of
an specific array, add a NULL entry last to the array and iterate up
to that instead.

Signed-off-by: David Vest <davve@opera.com>