fix #10581: getTile byte-ordering issue

This PR supersedes gh-1735 and has been tested and commented on there other than the final commit. This last commit should cause the integration build tests to pass.

/cc @joshmoore @chris-allan, @will-moore, @melissalinkert