update_constraint_v1tov2 function

Helper function to update v1_constraint objects to v2 specification in the portfolio object