Add multitype stack demo and improvements.