Not sure on this, i'm not great with these things! When i did my coolant hoses, i filled up the water, ran the car and it did exactl what you said, rised up and boiled over. I drained it out, filled up so the expansion tank had a bit of water in it, then ran it, you can see the air coming out the expansion hose, then eventually it stopped, filled up the tank and all good.
I think what happens is when you fill up, there is an air block, and as the air goes round it pushes the coolant, hence coming out the top of the bottle. If the lid was on, it wouldnt be able to escape cos of the sludge, and pressurise.
Check the link abovve, it sorted it for me