Rewritten flood fill to not stack overflow. Fixes #67 @30m.
Supports replacing whole tile patterns, closes #66 @30m.
Merge remote-tracking branch 'origin/master'