Implements array get/put