When Profile::createTileKey(), use unsigned to allow for more LOD and al...

...so check for overflow condition. Take care of some other signed/unsigned issues and a method that should return something in one case.