[osh] Implement `${a[@]@P}` and make `${a[@]@a}` and `${a[@]@Q}` consistent with Bash (#2210)