Fix handling of value property on inputs

See #890, #891.

Should fix both of them.