Support indexing syntax for take and put (simple "fancy indexing")