Fixes #1714: getting radio setting of imperial or metric in lua