fix Core.ToLiteral for Array support