Throw error when trying to discretize operators on unbnd domains.

This closes #1073.