Fix not using references in bound functions, add more instructions