Fixed using arrays with functions.
CLOSED - task 26: Cannot use count function with the new arrays 
http://github.com/Hexcore/HxCAS/issues/issue/26