Refactored gcc-bridge to properly handle arrays