added isInFlow function + rebuild Array.prototype.contains + many fixes