fixed enabling/disabling of corner extrapolation and fixed restriction when recursion unrolling is enabled