title: Return 1-Element Array as Element Type
body: <p>If I create a <code>Vector</code> of integers</p>
  
  <pre><code>a = Vector(1:3)
  </code></pre>
  
  <p>and I index one element it has the type of the element</p>
  
  <pre><code>typeof(a[3])
  Int64
  </code></pre>
  
  <p>but if I index one element with a range object it has the type Array</p>
  
  <pre><code>typeof(a[3:3])
  Vector{Int64}
  </code></pre>
  
  <p>How can I make sure that in case of only one element, the element is returned and not the array. The reason is that I want to send the indexed Vector to a function and depending on the type a different method is called.</p>