Improved the handling of numeric default values.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>