Fixed tile to array bug.
Merge pull request #522 from lossyrob/tilerasterfix

Fixed tile to array bug.