Validate the structure of Javascript objects using semantic templates. Written as a lodash mixin.