Catch AIOOBE and use IllegalOpcodeException

Fixes #8