Add ((weak)) attribute to forward declaration of user-supplied XY function
Fix off-by-one error in array blend functions.