Improve error message for invalid inline service definitions.

Refs #5846
Fix scoping rules for object definitions.

Refs #5846
Allow semi-colons as separators for lterms.

Refs #5846