add Array.extract methods to improve arg handling