Add support for x-each

Tests to be done and some tricks.
But it works :)