Well I don't have too much to add to this.The fix for me was to recreate the layers in ArcMap 10.2.I compared the new layers vs the old ones in the Rest API and I couldn't see any difference but in the end the entirety of the problem was unrelated to the JavaScript API.