Make param compilation support Locale objects