Then how come there always are the same amount of stars as level ups on the newly built unit?That's not what that star means at all. Which means that one way or another this is a bug. And yes it is rather confusing.

I'm pretty sure the stars tells how many levels the starting experience amounts to.