Prevent inline functions infinite loop. Fixes issue 1131
R=dimvar