Warn on invalid WCS unit

Possible solution to #3190.
And can you clarify if it then returns ``None`` for the unit, or an ``UnrecognizedUnit``?