Elastoresistive and Elastocaloric Anomalies at Magnetic and Electronic-Nematic Critical Points