Add specialize pragmas for fromListWithSizeHint