Fix assayDataAsMatrix to work with updated Sam API.