A Commonwealth Inquiry has been told of measures to keep people with cognitive disability out of the criminal justice system.