Add duplicate reference to block

This is to allow for the replace flag to work when the level of template
inheritence is > 1.

@incuna/js please.