Add very simple spec for constants inside singleton classes (fixes #340)