[opwig] updated wrappergen and wrapperspec to have a 'middleblock' of generated code