fix macro
fix array types for pass by ref