some redundancy removed from bytecode generator methods

I have found that these 16 methods could be replaced with a 4 with additional parameters added. This change removes around 220 lines of redundant code.