fix compiler error regarding undefined functions
allow arrays as params
fix runtime crash when cacheHandlingBlock is not defined