It is x and y 32 that is causing the issue as the tileset is only 32 wide/high, thus anything over 31 would be out of bounds. With that said, why would it return 32 from "GetTileAtPosition"? in the first place? Also, might I suggest in a future release that instead of an out of bounds tile causing tk2d to fail (i.e. tk2d functions no longer work after this type of error), instead maybe a try/catch? Essentially if this is called out of bounds, like I said before, you have to restart the entire scene since tk2d tilemap dies out.
px,py = on screen coordiantes, x,y are the coordinates returned from tileMap.GetTileAtPosition(whichBlockToCheck, out x, out y); "whichBlockToCheck" originates from the world coordinates of a mouse click.
px,py:256,844 x,y:32,22
UnityEngine.Debug:Log(Object)
Here in another case:
px,py:201,833 x,y:32,23
UnityEngine.Debug:Log(Object)
x,y:222,810 px,py:21,32
UnityEngine.Debug:Log(Object)