Treat class names with array indicators as CT_TYPE in Java

Extends the 'word followed by word is type' check to skip past
intermediary (including stacked) sets of bracket in Java.