Sugar: GetVariable and GetParam unified