Util: #232: make toXArray(List) functions nullsafe