added ToString method for hashtables; added missing support for scriptblock arguments on foreach method