(bug 43278) Limit labels etc to 250 characters.

This patch includes several changes needed to make this testable.

Change-Id: I4339e526c7f071800a3c97a12bfc4e78c9587c0a