Tweaks to including allowedValues validator when reading structure from MySQL table.