Primary fix: Make AlgorithmForInputNode use container constraint space insted of child space.
Secondary: This change causes constraint space to not be const
Also, minor bug fixes by Ian to make tests pass.
BUG=
635619
Committed:
https://crrev.com/daaaf8661aa98f3f3eaa69a30816c2fae4f32704
Cr-Commit-Position: refs/heads/master@{#437683}