title: CQ5 properties.get("foo") String Array.length - JSTL equivalent
body: <p>here is a problem I've been battling with for hours now I will be grateful for any help.</p>
  
  <p>I used scriplets as follows <code>&lt;%String[] filters = (String[])properties.get("formfactors" ,String[].class) ;%&gt;</code>
  then <code>&lt;%=filters.length%&gt;</code></p>
  
  <p>returns length of filters[] as expected.</p>
  
  <p>now I have to remove all the scriplets from the code</p>
  
  <p>so I did:</p>
  
  <pre><code>&lt;cq:defineObjects /&gt;
  
  &lt;c:set var="filters" value="${fn:length(properties.filters)}" /&gt;
  
  &lt;c:out value="${filters}"/&gt;
  </code></pre>
  
  <p>problem is: this returns the length of the string properties.filters[0] in case that properties.filters.length == 1</p>
  
  <p>like JSTL or CQ was automatically converting the repository variable type from String[] to String </p>
  
  <p>hope this all make sense.</p>
  
  <p>Question is how do I in JSTL force variable type to be String Array or if its CQ returning single string how do I make sure it gets assigned to the array</p>
  
  <p>Thank you</p>