added warning for ignoring stray value
added check whether type name is empty