Default value calculation

* If there is no default value defined calculating it instead setting
it to 0
* Same behavior as native element
Merge pull request #37 from andreruffert/default-value

Default value calculation