Why do you need to stay on 3.1 if 3.4 fixes your issue? I guess you are using some plugin which is supposed to support 3.1 only? Within the 3.x branch i never had much problems upgrading even while using tons of plugins. Many upgrade fixes should be found here in the forums