Equipartition and virial theorems within general thermostatistical formalisms