Added a array_gather native.

This native corresponds to IF1 gather, which can be used to split an array in multiple arrays
that fulfill a certain condition.