A bit of cleanup in general_c, general_dcst and general_r for code handling in-place transforms.
general_c
general_dcst
general_r