[MIN] Better error message for self-referencing static variables.
Merge pull request #888 from LeoWoerteler/gh-886

[MIN] Better error message for self-referencing static variables.