fixed variable references

this might have been my longest debug session yet, taking me an entire
day - for two $#@%ing characters!

the symptom was that node coordinates (`.x` and `.y` properties) were
`NaN` - tracking that down required an assortment of trickery, including
injecting getters and setters to determine where the NaN assignment is
happening, as well as digging into D3