The Influence Of Melting On The Thermo-Chemical Evolution Of Rocky Planets' Interiors