Prevent copying procedure declaration blocks

Fixes #341.