Convert UPCThreadArrayType into VariableArrayType and use upcr_threads instead of THREADS.  Fixes #67.