Support maptype and settype