Wrap tile numbers at the international dateline. Closes #2226.