Fix uninitialised variable.
Support nested exceptions in test harness.
Force some TileJSON parameters to be integers, and have a better default for `maskLevel` than zero.
Added tests for TileJSON parameters and their types.