Use object's context explicitly in deleteEntities, added import to CoreData+MagicalRecord