enable setdiag for non pre-existing offsets
Fixing off-diag impl, adding test case.
Workaround format hack.
Merge pull request #2 from perimosocordiae/patch-3

enable setdiag for non pre-existing offsets