fix Tilemap.setCollision

setCollision is passing the wrong index into setCollisionByIndex