Hotfix/byref method

Introduces missing code generation for byref methods