resolve several scoping issues in otredyn
 - use alien-scope-references where appropriate.

5 files changed