Improve code generation error handling, formalized into generic code block section, dynamically resized if needed
Currently, all code generation is done via a primitive, statically allocated 64K memory, and a moving global codeptr variable.
Change it to a couple of functions (add 8bit code, add 16bit...) which in internally manages code pointer and buffer limits. Also, let these new functions resize buffer space automatically if code generation limits is reached.