factor this out
support inline arrays of deps (dakkar, #34)