throw an error exception when the Java backend compiler get confused on compiling data structure
minor refactoring: extract local variable
Merge pull request #514 from yilongli/unified-builtins2

emit error message when Java backend compiler get confused