optimise indexing and slicing of bytearray
add assert to find cases where we fail to generate code for indexing/slicing

--HG--
extra : amend_source : b6140bfd07fdf9ae0c7dde2037b3cbff682260e7