basis and statevector getindex now returns proper collection type