Fix handling of units in FITS and VOUnit parsers

This fixes the bug mentioned in #1409.