bug fix: missing d=0 default in spdiagm (from #4547)