Add testcase for a standalone system
Fix type visibility for external procedures