Kuelshammer ideals and the scalar problem for blocks with dihedral defect groups