Add chain.replace method

Replace allows to replace the value if it is equal to the argument

Add has and inside tests to check if property exists and if inside
array