add range slice support to arrays
cosmetic changes