(2) Nothing in a domestic relationship agreement or
termination agreement affects the power of a court to make an order with
respect to the right to custody of, maintenance of or access to or otherwise
in relation to the children of the parties to the agreement.