mojo: Fix Java binding generator for array<enum>

Values should be validated by iterating with i{{level+1}}.

This is a cherry-pick of http://crrev.com/c/2532547

Bug: 173033003
Test: build
Change-Id: I896799dd408000c4f391e66dfeba92f0378a0f4e
1 file changed