Component parameter bindings fix

This is an update to PR #682, and fixes issue #681. #682 didn't include the latest viewmodel changes. However, the included test still failed before the change, and passed after the change, so the issue is still relevant. I also cleaned up the whitespace. All other credit to @halfnelson.