Add 'discard' function, which silences any output to the writer.
Fix a bug where a discarded value would not get popped from the operand stack and in consequence create a frame error at the end of the method.