Fix instance export functions
Fix instance export functions

- missing variable declarations
- reuse/redeclaration of input parameters

Never skimp on `git stash -k; go build ./...` testing.

1and1/soma