add similar() method for EnvHash. fixes #4643