casts test: use const-ref parameters

simdarrays really better be passed as const-ref (in general). This also
gets rid of the overalignment warnings from GCC

Signed-off-by: Matthias Kretz <kretz@kde.org>