Vector layer duplicates when changeing to google base layer

When you have a vector layer overlay in the map and change from any XYZ base layer to google base layer, the vector layer get's duplicated and orphaned.

This does only happen if you change the baselayer onload, so it might be some kind of race condition when the google layer isn't fully initialized.

See http://lohner-net.de/skylines/ol2.13.html for a example, just zoom out and the three markers get duplicated.