Updated objectives to take into account hidden traits

Also updated validator errors (line number changes.)