Rio now outputs matrices correctly