#7963: fix error message when 'object' called with arguments.

Patch by Alexander Belopolsky.
#7963: fix error message when 'object' called with arguments.
Fix error messages.