Or you can use C++ scripts instead and use std::vector<var> directly!

That said, series() is already optimized, and getting its length would indeed be a very useful feature, especially when backtesting many assets with different start dates.