Fixed several bugs in fc.setMaxNodeIndex.  With these changes, Bob's test passes.

Leo build: 20141016210829