Handle extend of inline partials

Fixes #833