fixes #5384 - return value now includes the metadata value, as well as the value type
adding docblock
remove unnecessary namespace declaration
add support for 5.4 array declaration
Merge pull request #5400 from steverhoades/hotfix/5384

fixes #5384 - getValue now returns metadata of the value, added getValueType
Merge branch 'feature/5400' into develop

Close #5400