Fix derived reactivity in effects

Fixed an issue where derived stores were being unnecessarily reconnected when read inside branch or root effects, improving performance and correctness of reactive updates.