Refresh entity before the next update

Changed code in EntityManager when adding or removing components. This fixes #63 issue.