The Block Decoupling Problem for Systems Over a Ring