Made DataValue::getType static, added tests for both static/instance usage

Change-Id: I20db0907c96e4bd74eeeaa3019205f3d2af8a5ca