Properly serialize IEnumerable<T> and T[] return values from services.