validate: fix datatype handling of default values