Support B.C. with dot at the end as well as B. C. with spaces

* More tests.
* trim was done on the year part only, not on the era part.
* Always the same BCE > CE order, which is important since they
  overlap.

Change-Id: I0f37cb0a532d36d75387e200957ff3cd5ed33695