closed araqne/issue#520, added flatten() and unique() functions