Refresh entity before the next update

Changed code in EntityManager when adding or removing components
Merge pull request #64 from Mephistofeles/master

Refresh entity before the next update