Prevent local custom blocks in global custom block definitions

fixes #167 for future projects