Fix array returns, assemble test, switch instructions and more