Fix bytecode generation and tests to reflect the new parser