Fixes an issue with unique constant graphs (closes #243).