Made atlas error message be more verbose when index is out of range
Fixed atlas:set/getTileOffsets