compile dependencies too
fix code generation when array field is passed as VAR
Merge pull request #28 from vladfolts/rel_v1.0

fixes from rel v1.0