Fixed bugs in GridGeneratorBox. Added flush output port.