[GEOT-4677]: added logging and workaround for invalid unit string in time axis. Backport to 11.x

Backport to 11.x

This pull request is a modification of the https://github.com/geotools/geotools/pull/352 pull request.

Please look at the following issue https://jira.codehaus.org/browse/GEOT-4677.