Fix literal validation errors
Fix dynamically built up errors

fixes #1653 on github
Merge pull request #1751 from steventlamb/topic/fix_validation_errors

Topic/fix validation errors