Warn on invalid WCS unit

Possible solution to #3190.