fix for updating nested objects, fix for creating object with primary key values of 0 and ""