Expected behaviour
distance_array and friends are used often in user code; they should take AtomGroup instances as arguments
Actual behaviour
Exception is raise because only coordinate arrays are allows
Proposed change
Leave the distance_array in lib.distances as the bare bones version
Create a wrapper in analysis.distances that allows use of AtomGroup.
I'm not totally happy with keeping the same name but switching names in one either of the two places will break code.