+ * tal_dup - duplicate an object.
+ * @ctx: The tal allocated object to be parent of the result (may be NULL).
+ * @type: the type (should match type of @p!)
+ * @p: the object to copy (or reparented if take())
+ */
+#define tal_dup(ctx, type, p) \
+ ((type *)tal_talloc_dup_((ctx), tal_talloc_typechk_(p, type *), \
+ sizeof(type), 1, 0, \
+ TAL_LABEL(type, "")))
+
+/**
+ * tal_dup_arr - duplicate an array.