functions: demonstrate passing array-in-struct as function argument

Arrays degrade to pointers when passed as function arguments
but not when they are declared in structs.

Also made diagnostic messages more consistent.