Core: Allow attributes to have a value of zero (eg min='0')

Closes #1029
Closes #930
Fixes #854