Automap rules : input multiple layers

I didn’t encounter any problem while testing, so I issued a pull request.
I think it should also solve this issue.
I hope it doesn’t break anything for anyone.
Is there a tiled automap documentation I should also update in the future when it gets merged?