General function for incrementing an mVar