add slack name to CompositeConstraint

1. Add 'cost' and 'slack_name' to CompositeConstraint.
2. Add a test case for CompositeConstraint in testNLPWConstraint
3. Add 'x_name' field to NonlinearProgramWConstraintObjects