Add dict type, merge function