tests: commit various tests that were mostly created to test the bytecode compiler

Also fix a bug in ByteArray##resize.