Remove mdatoms from coupling code and use more ArrayRef