bug fixes for indexers (arrays)