Fixed ArrayStoreException in MethodAdder constructor

See individual commits for details.