fixes #5384 - getValue now returns metadata of the value, added getValueType

getValue will now return the definition of the value and getValueType will return the PHP Type of the value, if it can determine it.