`.foo[-1] = ...` trips assertion (fix #490)