Implement calls to static functions from other classes (mostly)
Merge remote-tracking branch 'origin/codegen' into codegen