generateEntityAutoTags: recently added bugs fixed

the $dict_attrs variable was mistyped as $dict_arrrs. This broke
building attributes auto-tags in listCells().

is_array(global_var) is very slow. The performance testing was done
before the call to is_array() appeared, so this inefficiency was missed.