Add a variable in a family with custom type