mesa: fix some bugs with precision qualifier parsing