use array_merge for $bytecode instead of $bytecode[]

Time: 524 ms, Memory: 25.00Mb
OK (524 tests, 530 assertions)

Change-Id: I8e333ea31c9e62000e44342b6df2a974d2df7f48
Add $end exception before return $bytecode;

Time: 526 ms, Memory: 25.00Mb
OK (524 tests, 530 assertions)

Change-Id: Ibe06d689361231c10913002cbbaff867b4f18123
Merge branch 'develop' of https://github.com/wikimedia/mediawiki-extensions-Foxway into develop