Added Gecode::elements builtin

Added getIntSharedArray auxiliary function.