Edits towards implementing gradAndInfo for multicomponent models.