core: add ArrayGet() function with def value