Select layer by name for layerAsTileMap().

Signed-off-by: suicidepills <atom.mac@gmail.com>
Bugfix: Support tile sets with more than one tile.

Signed-off-by: suicidepills <atom.mac@gmail.com>