Fixed handling of dimensionless quantities in UnitBase/to_system - Issue #1150

A proposed solution for Issue #1150:

Unit conversion had a bug in class UntBase / method to_system
for dimensionless quantities - fixed