Added zero padding support in fixed width writer, and fixed bugs in grid->getValue