On adding a variable to a Frobenius manifold and generalizations