Add helper functions for array get/set by index.