A court which refuses a decree of divorce or separation shall not, by virtue of such refusal, be prevented from making an order for aliment or an order regulating custody or education of, or access to, a child or an incidental order determining any dispute between the parties as to their respective property rights.