Make @rand work for static arrays.

Also fixed a bug where bvec randomization was not having random stability.