fixed two bugs in basis tranformation: incorrect shape and dims for kets and bra transformation, and fixed inconsistency between transformations of kets/bras and density matrices
fix typo
changed density of rand_dm since 0.5 fails is too low for small systems (fails completely for two-level systems). more tests needed on what would be an optional density for v.