octascript: exposed array methods as "std\.array" and implemented more algorithms

The additional algorithms include "map", "filter", "foldr" and others.