Added Functions class with array extensions and removed a redundant List casr