Add type key to ClassTop.