the validate_legacy function is marked for deprecation in v9.0.0 from puppetlabs-stdlib. This change also adds a few more validations about some data types inexplicitly required. Change-Id: I18bc265876f48a7569e971681428fac9e2504486