allow the value zero as input for number elements

This attempts to fix issue #9