Fixed several cache bugs.
Fixed several cache bugs.

- Define the parent object for deserialized nodes so functions that rely on
  the parent work.
- fix broken if statement.
- populateChildren() when formatting.

google/mawfs,google/mawfs,google/mawfs