Is deleted propagation bug

• included the fix from lubbo for reusing objects with RKReplaceAssignmentPolicy 
• fixed the bug that isDeleted is not propagated to related objects
• added test case
• fixed test cases that where failing because of the isDeleted fix