Fix issues https://github.com/hgrecco/pint/issues/107, https://github.com/hgrecco/pint/issues/111, https://github.com/hgrecco/pint/issues/112

Hello!

These changes were more logical in one changelist because they were interconnected.

Let me know what you think!