Effects of compressibility and heating in magnetohydrodynamics simulations of a reversed-field pinch