Added 'in' to most parameters in check.d's functions so as to be able to pass in const refs