Store length as a number.
Store length as a number.

Keep the length as a number throughout; previously it was being replaced
with a string by the DOM binding code. Also, fix up previously stored
strings into numbers.

cinhtau/pawhash,tornewuff/pawhash,cinhtau/pawhash,tornewuff/pawhash