Improve error message when importing data constructors (ticket #4058).

Authored by michalt on Nov 27 2010, 3:13 PM.