OK for the comment, but the second patch looks really suspicious to me.
It seems like in the definition of 'rcs' the case where
(resolveConflicts p) is null and the alternative case have been inverted?
I would suggest rollback this patch in screened ASAP.