fix a number of bytecode errors that come from malformed code involving define-struct