You need model[:a][1]. model[:a] fetches the vector of variables.
model[:a][1]
model[:a]
See also variable_by_name: Variables · JuMP
variable_by_name