added a check and better error message
included Traian's patch
fixed imp-hoare definition
merged with unified-builtins2
Merge pull request #615 from yilongli/fixing-issue-#602

Fixing issue #602