This moves all array code into the SHL library and fixes all users. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>