Make x.decompose(bases=[x]) work

Addresses an issue reported by John Quinn in mailing list thread "Bug in units decompose()"