[PLT-341] Added helper for converting Double (object) lists to double (primitive) arrays