Simplify real array output code