Fixed resolveTileset to pass the tileset vector by reference.
I can't believe it worked at all until now.
Also moved the level loading code to be more friendly towards multiple
object layers in the future.