Ion heating and magnetohydrodynamic dynamo fluctuations in the reversed-field pinch