Task #31: XTuple bug fixes.