BUG #14185. Fix logic for determining component names.

The logic to return component name for a single component array was
incorrect resulting in returning the Component 0 name when asking
for magnitude for non-scalar arrays. That was causing BUG #14185.
Fixed that.

Change-Id: I262af491e567a4602c90b211814de16fd0663a35
Merge topic '14185_fix_component_name' into next

b65b5d9 BUG #14185. Fix logic for determining component names.