Added more input validation to DataSpecsMapping

Basic checks for #1161.