Fix handling of value property on inputs

Fixes #890; fixes #891