Updated for Compatibilty with SS3.1 RC2

SS3.1 RC2 uses a different Item loop and includses a new hidden field to help with writing related objects on unsaved objects