compile dependencies too
fix code generation when array field is passed as VAR