Add support for G20/G21 codes and inch mode.