extended functionality of getValue to arrays ( varname[numeric-index] )