Now checking for sc_ops in rhs_generate._td_format_check, using a new convenience function collapse_op_check instead of copypaste