Cleanup, fix utils.Undefined to check for null,  make ValidationDefintionparse sync