Rename ref calls to getindex that were missed earlier.

Update bitarray tests to use getindex and setindex!

Reinstate the ref() deprecation.