Cast non-arrays into arrays (suppress invalid foreach warning)