BUG: Handle masks in Tile node (and add unit tests)