Fix for redmine #2626. Array keys are not constrained to 126 characters
added unit test for redmine #2626