Fixes issues with pin translation for pwm and regex interpolation.